﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<ali:Get ID="Ask" Object="Ask" InnerID="Request.QueryString['ID']" Validate="True" />
<ali:Get ID="Course" Object="Course" Guid="Ask[CourseID]" />
<ali:Get ID="Lesson" Object="Lesson" Guid="Ask[LessonID]" />
<section data-page="ask_edit" data-title="编辑评价" data-id="<%=Ask[InnerID]%>" data-lang="<%=ContentLang%>">
	<dl class="path1">
		<dt><span>您的位置：</span><a href="list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">评价列表</a> → <b><%=Ask[Creator]%></b></dt>
	</dl>
	<form action="" class="post">
		<div class="post-body">
			<table class="post-table margin2">
				<tr>
					<th>课程：</th>
					<td><img src="<%=Course[Thumbnail]%>" style="width:24px;height:24px;vertical-align:middle"> <%=Course[Name]%></td>
				</tr>
				<tr>
					<th>课件：</th>
					<td><%=Lesson[Name]%></td>
				</tr>
				<tr>
					<th>用户：</th>
					<td><%=Ask[CreatorName]%><br><img src="<%=Ask[CreatorHead]%>" style="width:24px;height:24px;vertical-align:middle"> <%=Ask[CreatorNickname]%></td>
				</tr>
				<tr>
					<th>内容：</th>
					<td><pre><%=HttpUtility.HtmlEncode(Convert.ToString(Ask[Content]))%></pre></td>
				</tr>
				<tr>
					<th>审核状态：</th>
					<td>
						<%If Convert.ToBoolean(Ask[IsChecked])%>
							<label><input type="radio" name="IsChecked" value="true" checked>已审核</label>
							<label><input type="radio" name="IsChecked" value="false">未审核</label>
						<%Else%>
							<label><input type="radio" name="IsChecked" value="true">已审核</label>
							<label><input type="radio" name="IsChecked" value="false" checked>未审核</label>
						<%EndIf%>
					</td>
				</tr>
				<tr>
					<th>回复：</th>
					<td><textarea name="Reply" cols="80" rows="5" class="ali-input <%=ContentLang%>Font"><%=HttpUtility.HtmlEncode(Convert.ToString(Ask[Reply]))%></textarea></td>
				</tr>
			</table>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">保 存</button></div>
	</form>
</section>